#define  _CRT_SECURE_NO_WARNINGS
#define  _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
#include "util.hpp"
#include "dataController.hpp"
#include "cloud.hpp"

#define BACKUP_FILE "./backup.dat"
#define BACKUP_DIR "./backup"

int main() {
	//cloud::FileUtil fu(BACKUP_DIR);
	//vector<string> arr;
	//fu.scanDirectory(&arr);
	//cloud::DataController data(BACKUP_FILE);
	//for (auto& a : arr) {
	//	data.insert(a, "1234aaa");
	//}

	//cloud::DataController data(BACKUP_FILE);
	//string str;
	//data.getByKey(".\\cloud.cpp", &str);
	//cout << str << endl;

	cloud::Backup backup(BACKUP_DIR, BACKUP_FILE);
	backup.run();

	return 0;
}